package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuan_rz
 * @since 2019-01-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAC_T")
public class GwacT extends PO<GwacT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWACENT", type = IdType.INPUT)
    private String GWACENT;
    private String GWAC001;
    private String GWAC002;
    private String GWAC003;
    private String GWAC004;
    private String GWAC005;
    private String GWACACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWACUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWACGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWACMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWACTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWACDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWACORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWACORIU;


    @Override
    protected Serializable pkVal() {
        return this.GWACENT;
    }

}
